﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BBCDiscTransfer
{
	class FileInfo
	{
		private string name;

		public string Name;
		public string Load;
		public string Call;
		public string Size;

		public FileInfo(string infoLine)
		{
			name = infoLine.Substring(0, 9);
			Name = name.Trim();
			Load = infoLine.Substring(14, 6);
			Call = infoLine.Substring(21, 6);
			Size = infoLine.Substring(28, 6);
		}

		public override string ToString()
		{
			return string.Format("{0} {1} {2} {3}", name, Load, Call, Size);
		}
	}
}
